using System;
using ZoneFiveSoftware.Common.Data;
using ZoneFiveSoftware.Common.Visuals.Fitness;
using ZoneFiveSoftware.Common.Data.Fitness;

namespace FilteredStatistics.View
{
    class FilteredStatisticsTrackSelectionInfo : IItemTrackSelectionInfo
    {
#region IItemTrackSelectionInfo Members

        public string ItemReferenceId
        {
            get
            {
                if (m_Activity != null)
                {
                    return m_Activity.ReferenceId;
                }

                return string.Empty;
            }
        }

        public IValueRangeSeries<double> MarkedDistances
        {
            get { return null; }
        }

        public IValueRangeSeries<DateTime> MarkedTimes
        {
            get { return m_SelectedRanges; }
            set { m_SelectedRanges = value; }
        }

        public IValueRange<double> SelectedDistance
        {
            get { return null; }
        }

        public IValueRange<DateTime> SelectedTime
        {
            get { return null; }
        }

#endregion

        public IActivity Activity
        {
            get { return m_Activity; }
            set { m_Activity = value; }
        }

        private IActivity m_Activity = null;
        private IValueRangeSeries<DateTime> m_SelectedRanges = null;
    }
}
